﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Models.User.TakeMoneys>" %>
<%@ Import Namespace="Code.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	提款详情
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    

<div>
        <% Html.BeginForm("TakeMoneyDetail","User"); %>
        <table width="100%" class="table">
            <tr class="th">
                <th colspan="4" align="left">
                    &nbsp;&nbsp;搜索条件</th>
            </tr>
            <tr>
                <td>
                    <%=Html.LabelFor(p=>p.where.AddTime_Start) %>：从
                    <%=Html.TextBoxFor(p => p.where.AddTime_Start, new { @class = "text100", onClick="WdatePicker()" })%>
                    <%=Html.ValidationMessageFor(p=>p.where.AddTime_Start) %>
                </td>
                <td>
                    到
                    <%=Html.TextBoxFor(p => p.where.AddTime_End, new { @class = "text100", onClick = "WdatePicker()" })%>
                    <%=Html.ValidationMessageFor(p => p.where.AddTime_End)%>
                </td>
                <td>
                    <%=Html.LabelFor(p=>p.where.Money) %>
                    <%=Html.TextBoxFor(p=>p.where.Money, new { @class = "text100" }) %>
                    <%=Html.ValidationMessageFor(p=>p.where.Money) %>
                </td>
                <td rowspan='2' width="100px" align="center">
                    <input type="submit" value="查找" />
                </td>
            </tr>
            <tr>
                <td>
                    <%=Html.LabelFor(p=>p.where.DoTime_Start) %>：从
                    <%=Html.TextBoxFor(p => p.where.DoTime_Start, new { @class = "text100", onClick = "WdatePicker()" })%>
                    <%=Html.ValidationMessageFor(p=>p.where.DoTime_Start) %>
                </td>
                <td>
                    到
                    <%=Html.TextBoxFor(p => p.where.DoTime_End, new { @class = "text100", onClick = "WdatePicker()" })%>
                    <%=Html.ValidationMessageFor(p => p.where.DoTime_End)%>
                </td>
                <td>
                    <%=Html.LabelFor(p=>p.where.State)%>
                    <%=Html.DropDownListFor(p => p.where.State, Model.States.Each(p => p.Selected = p.Value == Model.where.State.ToString()))%>
                </td>
            </tr>
        </table>
        <p />
        <%=Html.HiddenFor(p=>p.PageInfo.PageCount) %>
        <% Html.EndForm(); %>
        <table class="table" width="100%">
            <tr class="th">
                <th>金额</th><th>申请时间</th><th>收款方式</th><th>收款账号</th><th>处理时间</th><th>状态</th><th>备注</th>
            </tr>
            <%var i = 0; foreach (var item in Model.TakeMoneyList)
              {
                  var remark =string.IsNullOrEmpty(item.Remark.Replace("&",""))?"":item.Remark.Replace("&&", "管理员说:").Replace("&", "我    说:");
                  %>
                  <tr <%=i++%2==1?"class='supersede'":"" %>>
                        <td><%=(double)item.Money%></td>
                        <td><%=item.AddTime%></td>
                        <td><%=item.Type.GetName() %></td>
                        <td><div class="winnumberitem width150"><%=item.Account %></div></td>
                        <td><%=item.DoTime%></td>
                        <td><%=((Code.Models.TakeMoneyState)item.State).GetName()%></td>
                        <td align="left"><div class="winnumberitem width100"><label title='<%=remark%>'><%=string.IsNullOrEmpty(remark) ?"": (remark.Length > 25 ? remark.Substring(0, 25) : remark)%></label></div></td>
                  </tr>
             <%} %>
             <tr>
                 <td colspan='7' align="right">
                    <%=Html.Pager(Model.PageInfo.CurrPage, Model.PageInfo.PageCount, Model.PageInfo.SunCount, "PageInfo.CurrPage", Url.Route(new { Model.where }), "PageInfo.PageCount") %>
                 </td>
             </tr>
        </table>
        <%if (Request["ReturnUrl"] != null){%>
        <a class="a_blue" href='<%=Request["ReturnUrl"] %>'>&gt;&gt;返回</a>
        <%} %>
</div>
</asp:Content>
